package handler

import (
	"RMS/app/shop/lib"
	"RMS/app/shop/model"
	"RMS/common"
	"github.com/gin-gonic/gin"
	"log"
)

func PackageList(c *gin.Context) interface{} {
	req := &model.PackageListReq{}
	if err := c.BindQuery(req); err != nil {
		resp := &model.PackageListResp{}
		resp.Status = common.ErrCode
		resp.Message = common.ReqErr
		return resp
	}
	log.Printf("req:=%+v", req)
	resp := lib.ImplPackageList(c, req)
	log.Printf("resp:=%+v", req)
	return resp
}
